<?php

namespace App\Entities;

use Illuminate\Database\Eloquent\Model;
use Prettus\Repository\Contracts\Transformable;
use Prettus\Repository\Traits\TransformableTrait;

class PermissionUser extends Model implements Transformable
{
    use TransformableTrait;

    protected $table = 'permission_user';

    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasOne
     */
    public function permission(){
        return $this->hasOne('App\Entities\Permission', 'id', 'permission_id');
    }

}
